# FROM python:3.9.22-slim-bullseye
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.9.22-bullseye
LABEL maintainer="yuankun"
RUN pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple && \
    pip3 config set install.trusted-host mirrors.aliyun.com && \
    pip3 install flask Faker==24.4.0 --no-cache-dir && \
    rm -rf /etc/localtime && \
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo 'Asia/Shanghai' > /etc/timezone
COPY app-logging.py /app/log/
WORKDIR /app/log
EXPOSE 9527 80
CMD ["python3", "/app/log/app-logging.py"]